package de.szut.tictactoe.main;

import de.szut.tictactoe.game.Game;
import de.szut.tictactoe.gui.MainFrame;

public class GameController {
	private static GameController controller;
	private UserInterface ui;
	private Game game;
	
	public static GameController getInstance(){
		if (controller == null) {
			controller = new GameController();
		}
		return controller;
	}
	
	public UserInterface getUI() {
		return ui;
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		getInstance();
	}
	
	private GameController() {
		ui = MainFrame.getInstance();
		game = new Game();
	}

	public Game getGame() {
		return game;
	}

}
